package camtburist.app02.service.impl;

import camtburist.app02.bean.Test;
import camtburist.app02.dao.TestMapper;
import camtburist.app02.service.ITestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TestServiceImpl implements ITestService {
    @Resource
    private TestMapper testMapper;

    @Override
    public List<Test> findAll() {
       List<Test> list = testMapper.selectAll();
       return list;
    }
    @Override
    public void save(Test test) { testMapper.insert(test);}

    @Override
    public void update(Test test) { testMapper.update(test);}
}
